class GameStates:
    """跟踪游戏的统计信息"""

    def __init__(self,ai_game):
        self.settings = ai_game.settings
        self.reset_stats()

    def reset_stats(self):
        """初始化游戏统计信息"""
        self.ships_left = self.settings.ship_limit
        